package com.hlm.demo.service.privateinfo;

import com.hlm.demo.mapper.AdminLoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class PrivateInfoService implements IPrivateInfoService {

    @Autowired
    AdminLoginMapper adminLoginMapper;

    @Override
    public int modifyInfoByName(Map newInfoMap) {
        if (newInfoMap.size() <= 1) {
            return 0;
        }
        return adminLoginMapper.infoModifier(newInfoMap);
    }

    @Override
    public int modifyPassByName(Map newPassMap) {
        if (newPassMap.size() <= 1) {
            return 0;
        }

        return adminLoginMapper.passModifier(newPassMap);
    }


}
